libmyc.so:math.o mystdio.o
	gcc -shared -o libmyc.so math.o mystdio.o
math.o:math.c
	gcc -c -fPIC math.c
mystdio.o:mystdio.c
	gcc -c -fPIC mystdio.c
.PHONY:clean
clean:
	rm -rf *.o *.so mylib.tar
.PHONY:output
output:
	mkdir -p mylib/include
	mkdir -p mylib/lib
	cp *.h mylib/include
	cp *.so mylib/lib
	tar -cvf mylib.tar mylib